package com.linln.modules.system.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.linln.modules.system.dao.CustomMapper;
import com.linln.modules.system.entity.ActivityUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ActiveService {


    @Autowired
    private CustomMapper customMapper;

    public Page<ActivityUser> getUserPager(Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum, pageSize, true);
        Page<ActivityUser> users = customMapper.getActivityUser();
        return users;
    }
}
